package com.dxc.intern.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dxc.intern.entity.PrimaryScreening;
import com.dxc.intern.vo.PrimaryScreeningVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 初筛数据表 Mapper 接口
 * </p>
 *
 * @author zhangchengming
 * @since 2022-02-21
 */
@Mapper
public interface PrimaryScreeningMapper extends BaseMapper<PrimaryScreening> {
    int getCount();

    @Select("SELECT resume.*,primary_screening.`status` FROM resume,primary_screening WHERE primary_screening.resume_id=resume.id")
    List<PrimaryScreeningVO> getPrimaryScreening(Page<PrimaryScreeningVO> page);
}
